Fully Bounded Polyhedral Analysis of Integers with Wrapping

نویسندگان

  • Stefan Bygde
  • Björn Lisper
  • Niklas Holsti
چکیده

Analysis of convex polyhedra using abstract interpretation is a common and powerful program analysis technique to discover linear relationships among variables in a program. However, the classical way of performing polyhedral analysis does not model the fact that values typically are stored as fixed-size binary strings and usually have a wrap-around semantics in the case of overflows. In embedded systems where 16-bit or even 8-bit processors are used, wrapping behaviour may even be used intentionally. Thus, to accurately and correctly analyse such systems, the wrapping has to be modelled. We present an approach to polyhedral analysis which derives polyhedra that are bounded in all dimensions and thus provides polyhedra that contain a finite number of integer points. Our approach uses a previously suggested wrapping technique for polyhedra but combines it in a novel way with limited widening, a suitable placement of widening points and restrictions on unbounded variables. We show how our method has the potential to significantly increase the precision compared to the previously suggested wrapping method.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Improved precision in polyhedral analysis with wrapping

Abstract interpretation using convex polyhedra is a common and powerful program analysis technique to discover linear relationships among variables in a program. However, the classical way of performing polyhedral analysis does not model the fact that values typically are stored as fixed-size binary strings and usually have wrap-around semantics in the case of overflows. In resource-constrained...

متن کامل

Taming the Wrapping of Integer Arithmetic

Variables in programs are usually confined to a fixed number of bits and results that require more bits are truncated. Due to the use of 32-bit and 64-bit variables, inadvertent overflows are rare. However, a sound static analysis must reason about overflowing calculations and conversions between unsigned and signed integers; the latter remaining a common source of subtle programming errors. Ra...

متن کامل

Static Analysis of Bounded Polyhedra

We present a method for polyhedral abstract interpretation which derives fully bounded polyhedra for every step in the analysis. Contrary to classical polyhedral analysis, this method is sound for integer-valued variables stored as fixed-size binary strings; wrap-arounds are correctly modelled. Our work is based on earlier work by Axel Simon and Andy King but aims to significantly reduce the pr...

متن کامل

Elastic Fields in a Polyhedral Inclusion With Uniform Eigenstrains and Related Problems

In this paper, the elastic field in an infinite elastic body containing a polyhedral inclusion with uniform eigenstrains is investigated. Exact solutions are obtained for the stress field in and around a fully general polyhedron, i.e., an arbitrary bounded region of threedimensional space with a piecewise planner boundary. Numerical results are presented for the stress field and the strain ener...

متن کامل

Fully discrete finite element approaches for time-dependent Maxwell's equations

Many problems in sciences and industry involve the solutions of Maxwell’s equations, for example, problems arising in plasma physics, microwave devices, diffraction of electromagnetic waves. In this paper, we are interested in the numerical solution of time-dependent Maxwell’s equations in a bounded polyhedral domain in three dimensions. In the literature, one can find a great deal of work on n...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Electr. Notes Theor. Comput. Sci.

دوره 288  شماره 

صفحات  -

تاریخ انتشار 2012